
<%@ page import="rentadomus.Dwelling" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'dwelling.label', default: 'Dwelling')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-dwelling" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-dwelling" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list dwelling">
			
				<g:if test="${dwellingInstance?.bedrooms}">
				<li class="fieldcontain">
					<span id="bedrooms-label" class="property-label"><g:message code="dwelling.bedrooms.label" default="Bedrooms" /></span>
					
						<span class="property-value" aria-labelledby="bedrooms-label"><g:fieldValue bean="${dwellingInstance}" field="bedrooms"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${dwellingInstance?.baths}">
				<li class="fieldcontain">
					<span id="baths-label" class="property-label"><g:message code="dwelling.baths.label" default="Baths" /></span>
					
						<span class="property-value" aria-labelledby="baths-label"><g:fieldValue bean="${dwellingInstance}" field="baths"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${dwellingInstance?.interior}">
				<li class="fieldcontain">
					<span id="interior-label" class="property-label"><g:message code="dwelling.interior.label" default="Interior" /></span>
					
						<span class="property-value" aria-labelledby="interior-label"><g:fieldValue bean="${dwellingInstance}" field="interior"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${dwellingInstance?.kitchenType}">
				<li class="fieldcontain">
					<span id="kitchenType-label" class="property-label"><g:message code="dwelling.kitchenType.label" default="Kitchen Type" /></span>
					
						<span class="property-value" aria-labelledby="kitchenType-label"><g:fieldValue bean="${dwellingInstance}" field="kitchenType"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${dwellingInstance?.block}">
				<li class="fieldcontain">
					<span id="block-label" class="property-label"><g:message code="dwelling.block.label" default="Block" /></span>
					
						<span class="property-value" aria-labelledby="block-label"><g:fieldValue bean="${dwellingInstance}" field="block"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${dwellingInstance?.furnished}">
				<li class="fieldcontain">
					<span id="furnished-label" class="property-label"><g:message code="dwelling.furnished.label" default="Furnished" /></span>
					
						<span class="property-value" aria-labelledby="furnished-label"><g:formatBoolean boolean="${dwellingInstance?.furnished}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${dwellingInstance?.idPlace}">
				<li class="fieldcontain">
					<span id="idPlace-label" class="property-label"><g:message code="dwelling.idPlace.label" default="Id Place" /></span>
					
						<span class="property-value" aria-labelledby="idPlace-label"><g:link controller="place" action="show" id="${dwellingInstance?.idPlace?.id}">${dwellingInstance?.idPlace?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${dwellingInstance?.parkingSlots}">
				<li class="fieldcontain">
					<span id="parkingSlots-label" class="property-label"><g:message code="dwelling.parkingSlots.label" default="Parking Slots" /></span>
					
						<span class="property-value" aria-labelledby="parkingSlots-label"><g:fieldValue bean="${dwellingInstance}" field="parkingSlots"/></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${dwellingInstance?.id}" />
					<g:link class="edit" action="edit" id="${dwellingInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
